/*
 * @Author: 专送Pro
 * @Date: 2019-08-23 13:17:18
 * @LastEditors  : wuzhen
 * @LastEditTime : 2020-01-08 19:35:00
 * @Description: 配置文件
 */
export default {
  data() {
    return {
      searchButtons: [
        {
          text: "添加角色",
          btnType: "add",
          type: "primary"
        }
      ],
      columns: [
        {
          title: "角色ID",
          key: "roleid"
        },
        {
          title: "角色名称",
          key: "rolename"
        },
        {
          title: "创建时间",
          render: (h, params) => {
            const row = params.row;
            return h("span", this.$fmtMoment(row.createtime));
          }
        },
        {
          title: "创建人",
          key: "creator"
        },
        {
          title: "描述",
          key: "description"
        },
        {
          title: "操作",
          slot: "action"
        }
      ],
      handleBtn: [
        {
          text: "修改",
          btnType: "edit"
        },
        {
          text: "权限管理",
          btnType: "editAuthority"
        }
      ]
    };
  }
};
